// 导入组件
import Vue from "vue";
import Router from "vue-router";
// 登录
import login from "@/views/login";
// 首页
import index from "@/views/index";
// 管理员管理
import Admin from "@/views/system/Admin";

// 首页
import Index from "@/views/index/Index";
// 数据统计
import DataStatistics from "@/views/index/DataStatistics";

// 用户管理
// 用户列表
import User from "@/views/user/User";

// 合伙人管理
// 合伙人列表
import Partner from "@/views/partner/Partner";
// 合伙人申请列表
import PartnerApplication from "@/views/partner/PartnerApplication";


// 充电桩管理
// 电桩管理
import ElectricPile from "@/views/chargingStation/ElectricPile";
// 充电桩价格设置
import ChargingStationPrice from "@/views/chargingStation/ChargingStationPrice";
// 站点管理
import Site from "@/views/chargingStation/Site";
// 端口管理
import Port from "@/views/chargingStation/Port";
// 预约充电押金管理
import PortReservation from "@/views/chargingStation/PortReservation";
// 充电桩订单管理
import OrderForGoods from "@/views/chargingStation/OrderForGoods";
// 警告管理
import Warn from "@/views/chargingStation/Warn";
// 余额充电金额终止条件
import Termination from "@/views/chargingStation/Termination";

// 管理员充电桩管理
// 充电桩列表
import AdminElctricPile from "@/views/adminCharging/AdminElctricPile";
// 管理员充电桩价格设置
import adminChargingStationPrice from "@/views/adminCharging/adminChargingStationPrice";
// 站点列表
import AdminSite from "@/views/adminCharging/AdminSite";
// 端口列表
import AdminPort from "@/views/adminCharging/AdminPort";
// 预约充电押金管理
import AdminPortReservation from "@/views/adminCharging/AdminPortReservation";

// 发票管理
// 发票列表
import Invoice from "@/views/invoice/Invoice";

// 商品管理
// 商品分类列表
import Category from "@/views/commodity/Category";
// 商品列表
import Commodity from "@/views/commodity/Commodity";
// 订单列表
import ProductOrders from "@/views/commodity/ProductOrders";
// 评论列表
import Comment from "@/views/commodity/Comment";


// 优惠券管理
// 充电桩优惠券
import FullReduction from "@/views/coupon/FullReduction";
// 商城优惠券
import MallCoupons from "@/views/coupon/MallCoupons";
// 活动优惠券
import EventCoupons from "@/views/coupon/EventCoupons";
// 注册赠送优惠券
import GiftCoupons from "@/views/coupon/GiftCoupons";


// 财务管理
// 积分管理
import Integral from "@/views/finance/Integral";
// 消费反积分百分比管理
import Consumption from "@/views/finance/Consumption";
// 钱包管理
import Wallet from "@/views/finance/Wallet";
// 提现管理
import CashWithdrawal from "@/views/finance/CashWithdrawal";
// 提现税率管理
import TaxRate from "@/views/finance/TaxRate";
// 充值记录
import RechargeRecords from "@/views/finance/RechargeRecords";
// 充值金额设置
import RechargeAmount from "@/views/finance/RechargeAmount";
// 充值积分百分比管理
import RechargePoints from '@/views/finance/RechargePoints'

// 会员配置管理
import Member from "@/views/member/Member";
// 税金设置
import Taxes from "@/views/member/Taxes";

// 设备管理
import Device from "@/views/device/Device";

// 用户反馈
import Feedback from "@/views/feedback/Feedback"

// 拉新配置管理
import Laxin from '@/views/laxin/Laxin'

// 充电桩转让价格服务费设置
import Transference from '@/views/transference/Transference'

// 转让管理
// 充电桩转让列表
import TransferReview from '@/views/transferReview/TransferReview'
// 场地转让列表
import TransferReviewCD from '@/views/transferReview/TransferReviewCD'

// 排行榜
// 减碳排行榜
import CarbonReduction from '@/views/charts/CarbonReduction'
// 明日之星排行榜
import Stars from '@/views/charts/Stars'

// 平台管理
// 轮播图管理
import Carousel from "@/views/terrace/Carousel";
// 协议管理
import Agreement from "@/views/terrace/Agreement";

// 管理员管理
import Administrators from "@/views/administrators/Administrators";




// 启用路由
Vue.use(Router);

// 导出路由
export default new Router({
  routes: [
    {
      path: "/",
      name: "",
      component: login,
      hidden: true,
      meta: {
        requireAuth: false
      }
    },
    {
      path: "/login",
      name: "登录",
      component: login,
      hidden: true,
      meta: {
        requireAuth: false
      }
    },
    {
      path: "/index",
      name: "首页",
      component: index,
      iconCls: "el-icon-tickets",
      children: [
        {
          path: "/index/Index",
          name: "首页",
          component: Index,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/index/DataStatistics",
          name: "数据统计",
          component: DataStatistics,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/user/User",
          name: "用户列表",
          component: User,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/partner/Partner",
          name: "合伙人列表",
          component: Partner,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/partner/PartnerApplication",
          name: "合伙人申请列表",
          component: PartnerApplication,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/chargingStation/ElectricPile",
          name: "电桩管理",
          component: ElectricPile,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/chargingStation/ChargingStationPrice",
          name: "充电桩价格设置",
          component: ChargingStationPrice,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/chargingStation/Site",
          name: "站点管理",
          component: Site,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/chargingStation/Port",
          name: "端口管理",
          component: Port,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/chargingStation/PortReservation",
          name: "预约充电拥金管理",
          component: PortReservation,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/chargingStation/OrderForGoods",
          name: "充电桩订单管理",
          component: OrderForGoods,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/adminCharging/AdminElctricPile",
          name: "管理员充电桩列表",
          component: AdminElctricPile,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/adminCharging/adminChargingStationPrice",
          name: "管理员充电桩价格设置",
          component: adminChargingStationPrice,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/adminCharging/AdminSite",
          name: "管理员站点列表",
          component: AdminSite,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/adminCharging/AdminPort",
          name: "管理员端口列表",
          component: AdminPort,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/adminCharging/AdminPortReservation",
          name: "预约充电拥金管理",
          component: AdminPortReservation,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/chargingStation/Warn",
          name: "警告管理",
          component: Warn,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/chargingStation/Termination",
          name: "余额充电金额终止条件",
          component: Termination,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/invoice/Invoice",
          name: "发票列表",
          component: Invoice,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/commodity/Category",
          name: "商品分类列表",
          component: Category,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/commodity/Commodity",
          name: "商品列表",
          component: Commodity,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/commodity/ProductOrders",
          name: "订单列表",
          component: ProductOrders,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/commodity/Comment",
          name: "评论列表",
          component: Comment,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/coupon/FullReduction",
          name: "充电桩优惠券",
          component: FullReduction,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/coupon/MallCoupons",
          name: "商城优惠券",
          component: MallCoupons,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/coupon/EventCoupons",
          name: "活动优惠券",
          component: EventCoupons,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/coupon/GiftCoupons",
          name: "活动增送优惠券",
          component: GiftCoupons,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/finance/Integral",
          name: "积分管理",
          component: Integral,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/finance/Consumption",
          name: "消费反积分百分比管理",
          component: Consumption,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/finance/Wallet",
          name: "钱包管理",
          component: Wallet,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/finance/CashWithdrawal",
          name: "提现管理",
          component: CashWithdrawal,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/finance/TaxRate",
          name: "提现税率管理",
          component: TaxRate,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/finance/RechargeRecords",
          name: "充值记录",
          component: RechargeRecords,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/finance/RechargeAmount",
          name: "充值金额设置",
          component: RechargeAmount,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/finance/RechargePoints",
          name: "充值积分百分比列表",
          component: RechargePoints,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/member/Member",
          name: "会员配置列表",
          component: Member,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/member/Taxes",
          name: "税金设置",
          component: Taxes,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/device/Device",
          name: "设备列表",
          component: Device,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/feedback/Feedback",
          name: "用户反馈",
          component: Feedback,
          meta: {
            requireAuth: true
          }
        },
        {
          path: '/laxin/Laxin',
          name: '拉新配置列表',
          component: Laxin,
          meta: {
            requireAuth: true
          }
        },
        {
          path: '/transference/Transference',
          name: '充电桩转让价格服务费设置',
          component: Transference,
          meta: {
            requireAuth: true
          }
        },
        {
          path: '/transferReview/TransferReview',
          name: '充电桩转让列表',
          component: TransferReview,
          meta: {
            requireAuth: true
          }
        },
        {
          path: '/transferReview/TransferReviewCD',
          name: '场地转让列表',
          component: TransferReviewCD,
          meta: {
            requireAuth: true
          }
        },
        {
          path: '/charts/CarbonReduction',
          name: '减碳排行榜',
          component: CarbonReduction,
          meta: {
            requireAuth: true
          }
        },
        {
          path: '/charts/Stars',
          name: '明日之星排行榜',
          component: Stars,
          meta: {
            requireAuth: true
          }
        },

        {
          path: "/terrace/Carousel",
          name: "轮播图管理",
          component: Carousel,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/terrace/Agreement",
          name: "协议管理",
          component: Agreement,
          meta: {
            requireAuth: true
          }
        },
        {
          path: "/administrators/Administrators",
          name: "管理员管理",
          component: Administrators,
          meta: {
            requireAuth: true
          }
        },


      ]
    }
  ]
});
